package day_04;

import java.util.Random;
import java.util.Scanner;

/**
 * @ClassName Test06
 * @Description TODO
 * @Author hp
 * @Date 2021/6/6 10:05
 * @Version 1.0
 **/
public class Test06 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        /*Random random = new Random();
        int sum = 0;
        int num = 0;
        for (int i = 0; i < 10; i++) {
            num = random.nextInt(100);
            if (num % 3 == 0) {
                sum++;
            }
        }
        System.out.println(sum);*/
        /*Random random = new Random();
        int sum = 0;
        int num = 0;
        for (int i = 0; i < 10; i++) {
            num = random.nextInt(150);
            System.out.println(num);
            if (num % 3 == 0 && num % 5 == 0 && num % 7 != 0) {
                sum++;
            }
        }
        System.out.println(sum);*/
        /*Random random = new Random();
        int sum = 0;
        int num = 0;

        for (int i = 0; i < 10; i++) {
            boolean flag = true;
            num = random.nextInt(100);
            System.out.println(num);
            for (int j = 1; j < num; j++) {
                if (num % j == 0 && j != 1) {
                    flag = false;
                }
            }
            if (flag) {
                sum++;
            }
        }
        System.out.println(sum);*/
        /*Scanner in = new Scanner(System.in);
        String[] names = new String[]{"张三", "李四", "王五", "赵六", "钱七"};
        System.out.println("请输入姓名:");
        String name = in.next();
        boolean is = false;
        for (int i = 0; i < names.length; i++) {
            if (name.equals(names[i])) {
                is = true;
            }
        }
        if (is == true) {
            System.out.println("是本组成员");
        } else {
            System.out.println("不是本组成员");
        }*/
        /*System.out.println("请输入要登记几个人的信息:");
        int num = in.nextInt();
        String[] names = new String[num];
        double[] sorces = new double[num];
        int maxindex = 0;
        for (int i = 0; i < num; i++) {
            System.out.println("请输入第" + (i + 1) + "个人的姓名");
            names[i] = in.next();
            System.out.println("请输入第他的分数");
            sorces[i] = in.nextInt();
        }

        for (int i = 0; i < num; i++) {
            if (sorces[maxindex] < sorces[i]) {
                maxindex = i;
            }
        }
        System.out.println("最高分是:" + names[maxindex] + "\t" + sorces[maxindex]);*/
        /*int[][] array = new int[5][];
        for (int i = 0; i < array.length; i++) {
            array[i] = new int[i + 1];
            for (int j = 0; j < array[i].length; j++) {
                array[i][j] = i + 1;
                System.out.print(array[i][j] + "\t");
            }
            System.out.println();
        }*/
        /*int[][] arrays = new int[4][5];
        for (int i = 0; i < arrays.length; i++) {
            for (int j = 0; j < arrays[i].length; j++) {
                arrays[i][j] = i + 1;
                System.out.print(arrays[i][j] + "\t");
            }
            System.out.println();
        }*/
        String[][] employees = {
                {"10", "1", "段誉", "22", "3000"},
                {"13", "2", "令狐冲", "32", "18000", "15000", "2000"},
                {"11", "3", "任我行", "23", "7000"},
                {"11", "4", "张三丰", "24", "7300"},
                {"12", "5", "周芷若", "28", "10000", "5000"},
                {"11", "6", "赵敏", "22", "6800"},
                {"12", "7", "张无忌", "29", "10800","5200"},
                {"13", "8", "韦小宝", "30", "19800", "15000", "2500"},
                {"12", "9", "杨过", "26", "9800", "5500"},
                {"11", "10", "小龙女", "21", "6600"},
                {"11", "11", "郭靖", "25", "7100"},
                {"12", "12", "黄蓉", "27", "9600", "4800"}
        };
        System.out.println("员工类\t编号\t姓名\t年龄\t薪资\t奖金股票\t");
        for (int i =0;i<employees.length;i++){
            switch (employees[i][0]){
                case "10":
                    System.out.print("普通员");
                    break;
                case "11":
                    System.out.print("程序员");
                    break;
                case "12":
                    System.out.print("设计师");
                    break;
                case "13":
                    System.out.print("架构师");
                    break;
            }
            for(int j =1;j<employees[i].length;j++){
                System.out.print("\t"+employees[i][j]);
            }
            System.out.println();
        }
    }

}
